function DECODING_RESULTS = save_more_decoding_measures(cv, DECODING_RESULTS)
% calculates additional decoding results stdevs, etc based on the original decoding results



    % save a few more mean results and stdev types 

    DECODING_RESULTS.ZERO_ONE_LOSS_RESULTS.mean_decoding_results = squeeze(mean(mean(DECODING_RESULTS.ZERO_ONE_LOSS_RESULTS.decoding_results, 2), 1));
    DECODING_RESULTS.ZERO_ONE_LOSS_RESULTS.stdev.over_bootstraps = squeeze(std(mean(DECODING_RESULTS.ZERO_ONE_LOSS_RESULTS.decoding_results, 2), [], 1));   

    
    if cv.save_results.normalized_rank == 1
        DECODING_RESULTS.NORMALIZED_RANK_RESULTS.mean_decoding_results = squeeze(mean(mean(DECODING_RESULTS.NORMALIZED_RANK_RESULTS.decoding_results, 2), 1));
        DECODING_RESULTS.NORMALIZED_RANK_RESULTS.stdev.over_bootstraps = squeeze(std(mean(DECODING_RESULTS.NORMALIZED_RANK_RESULTS.decoding_results, 2), [], 1));
    end

    if cv.save_results.decision_values == 1
        DECODING_RESULTS.DECISION_VALUES.mean_decoding_results = squeeze(mean(mean(DECODING_RESULTS.DECISION_VALUES.decoding_results, 2), 1));
        DECODING_RESULTS.DECISION_VALUES.stdev.over_bootstraps = squeeze(std(mean(DECODING_RESULTS.DECISION_VALUES.decoding_results, 2), [], 1));
    end


    if cv.save_results.ROC_AUC == 1   

         DECODING_RESULTS.ROC_AUC_RESULTS.separate_CV_ROC_results.mean_decoding_results = squeeze(mean(mean(mean(DECODING_RESULTS.ROC_AUC_RESULTS.separate_CV_ROC_results.decoding_results, 3), 2), 1));  
         DECODING_RESULTS.ROC_AUC_RESULTS.separate_CV_ROC_results.stdev.over_bootstraps = squeeze(std(mean(mean(DECODING_RESULTS.ROC_AUC_RESULTS.separate_CV_ROC_results.decoding_results, 3), 2), [], 1)); 

         DECODING_RESULTS.ROC_AUC_RESULTS.combined_CV_ROC_results.mean_decoding_results = squeeze(mean(mean(DECODING_RESULTS.ROC_AUC_RESULTS.combined_CV_ROC_results.decoding_results, 2), 1)); 
         DECODING_RESULTS.ROC_AUC_RESULTS.combined_CV_ROC_results.stdev.over_bootstraps = squeeze(std(mean(DECODING_RESULTS.ROC_AUC_RESULTS.combined_CV_ROC_results.decoding_results, 2), [], 1));       

    end


    
    
    
    for iTrain = 1:size(DECODING_RESULTS.ZERO_ONE_LOSS_RESULTS.decoding_results, 3)
        for iTest = 1:size(DECODING_RESULTS.ZERO_ONE_LOSS_RESULTS.decoding_results, 4)    

            temp = squeeze(DECODING_RESULTS.ZERO_ONE_LOSS_RESULTS.decoding_results(:, :, iTrain, iTest)); 
            DECODING_RESULTS.ZERO_ONE_LOSS_RESULTS.stdev.over_CVs_combined_over_bootstraps(iTrain, iTest) = std(temp(:));

            if cv.save_results.normalized_rank == 1
                temp = squeeze(DECODING_RESULTS.NORMALIZED_RANK_RESULTS.decoding_results(:, :, iTrain, iTest)); 
                DECODING_RESULTS.NORMALIZED_RANK_RESULTS.stdev.over_CVs_combined_over_bootstraps(iTrain, iTest) = std(temp(:));
            end

            if cv.save_results.decision_values == 1
                temp = squeeze(DECODING_RESULTS.DECISION_VALUES.decoding_results(:, :, iTrain, iTest)); 
                DECODING_RESULTS.DECISION_VALUES.stdev.over_CVs_combined_over_bootstraps(iTrain, iTest) = std(temp(:));
            end

        end
    end








